<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>手机绑定</title>
		<link rel="stylesheet" type="text/css" href="./css/binding.css" />
		<link rel="stylesheet" type="text/css" href="./css/pbulic.css" />
		<link rel="stylesheet" type="text/css" href="./css/iconfont.css" />
		<script src="./js/rem.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			document.addEventListener('plusready', function() {
				//console.log("所有plus api都应该在此事件发生后调用，否则会出现plus is undefined。")

			});
		</script>
	</head>
	<body>
		<nav>
			<i class="iconfont back">&#xe889;</i>
			<div class="qualitybox">
				<span class="quality">手机绑定</span>
			</div>
			<div class="navright">
				<i class="iconfont">&#xe67f;</i>
				<span></span>
				<i class="iconfont">&#xe649;</i>
			</div>
		</nav>
		<div class="contentbox">
			<div class="line"></div>
			<div class="content one">
				<span class="leftsp x">手机号码：</span>
				<input class="searchs" type="text" placeholder="输入您的手机号"  />
			</div>
			<div class="line"></div>
			<div class="content">
				<span class="leftsp x">验证码：</span>
				<input class="search" type="text" placeholder="输入验证码" />
				<div class="yan">
					<span>获取验证码</span>
				</div>
			</div>
			<div class="line"></div>
			<div class="contentbtm">
				<div class="butn btm">
					<span>立即绑定</span>
				</div>
			</div>
		</div>

	</body>
	<script type="text/javascript">
		function tiaozhuan(goHref) {
			for (var i = 0; i < goHref.aTaget.length; i++)
				goHref.aTaget[i].addEventListener('click', function() {
					plus.webview.open(goHref.newPage)
				})
		}
		tiaozhuan({
			aTaget: document.getElementsByClassName("back"),
			newPage: "personalcenter.html",
		})
		
		tiaozhuan({
			aTaget: document.getElementsByClassName('btm'),
			newPage: "success.html",
		})
		var oText1 = document.getElementsByClassName("searchs")[0];
		oText1.onfocus = function(){
			if (this.placeholder == "输入您的手机号") {
				this.placeholder = '';
			}
		}
		oText1.onblur = function() {
			if (this.placeholder == '') {
				this.placeholder = "输入您的手机号";
			}
		}
		var oText1 = document.getElementsByClassName("search")[0];
		oText1.onfocus = function(){
			if (this.placeholder == "输入验证码") {
				this.placeholder = '';
			}
		}
		oText1.onblur = function() {
			if (this.placeholder == '') {
				this.placeholder = "输入验证码";
			}
		}
	</script>
</html>
